layui.define(["form"], function (exports) {
  var $ = layui.$;
  var technicalCategory =
    layui.sessionData("technicalCategory").key == undefined
      ? "0"
      : layui.sessionData("technicalCategory").key;
  commissionStatistics(technicalCategory);
  function commissionStatistics(technicalCategory) {
    $.ajax({
      type: "POST",
      async: false, //异步执行
      url: base_url + "/technicalAuditOpinion/commissionStatistics",
      headers: {
        Accept: "application/json; charset=utf-8",
        Authorization: layui.sessionData("userToken").key,
      },
      contentType: "application/json",
      data: JSON.stringify({ category: technicalCategory }),
      success: function (data) {
        if (data.code == 200) {
          var data = data.data;
          $("#reviewBacklogSum").html(data.reviewBacklogSum);
          $("#reviewDonelogSum").html(data.haveDoneSum);
          $("#reviewLicensing").html(data.reviewLicensing);
          $("#protectionPlan").html(data.protectionPlan);
          //监护大纲
          $(".TheOutlineCount").html(data.TheOutlineCount);
          //征询类
          $("#reviewConsult").html(data.reviewConsult);
        }
      },
    });
  }

  exports("comment", {});
});
